<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>
        <!--(kev) Route berechnen-->
        <ui:composition template="index.xhtml">
            <ui:define name="left">
                <div>
                    <h:dataTable value="#{routeCalculationManager.rideFromStationToStation(routeCalculationManager.getShortesPathAsList())}" var="strings" width="100%">
                        <f:facet name="header">
                            Calculated Path from 
                                <b>#{routeCalculationManager.startStationString}</b>
                                to 
                                <b>#{routeCalculationManager.destinationStationString}</b>
                                :
                        </f:facet>
                        <h:column>
                            #{strings[0]}
                        </h:column>
                        <h:column>
                            #{strings[1]}
                        </h:column>
                        <h:column>
                            #{strings[2]}
                        </h:column>
                        <h:column>
                            #{strings[3]}
                        </h:column>
                    </h:dataTable>
                </div>  
                
                <h:dataTable value="" width="100%">
                    <f:facet name="header">
                        <h:graphicImage value="maps/#{sessionManager.hash}.jpg" alt="grafische Streckenansicht" width="100%"/>
                    </f:facet>
                </h:dataTable>
                   
            </ui:define>
        </ui:composition>
    </body>
</html>
